/*
 * @Author: wurangkun
 * @Date: 2024-07-13 15:29:22
 * @LastEditTime: 2024-07-13 16:54:56
 * @LastEditors: wurangkun
 * @FilePath: \my-app\app\store\user.ts
 * @Description: 
 */
import { create } from 'zustand'

type State = {
  userInfo?: User
  setUserInfo: (userInfo: User) => void
}

export const userUserStore = create<State>((set) => ({
  userInfo: undefined,
  setUserInfo: (userInfo: User) => set(() => ({ userInfo })),
}))


